﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace Faser_Shop.Models.Database
{
    public partial class LogisticsWarehouse
    {
        public LogisticsWarehouse()
        {
            LogisticsRecords = new HashSet<LogisticsRecord>();
        }

        [Key]
        [Column("WarehouseID")]
        public int WarehouseId { get; set; }
        [StringLength(20)]
        public string WarehouseCode { get; set; }
        [StringLength(50)]
        public string DeliveryCompany { get; set; }

        [InverseProperty(nameof(LogisticsRecord.WarehouseCodeNavigation))]
        public virtual ICollection<LogisticsRecord> LogisticsRecords { get; set; }
    }
}
